package online.sixfish.doubao.service;

import online.sixfish.common.dto.PageDTO;
import online.sixfish.doubao.model.entity.Courseware;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface CoursewareService {
    PageDTO list(String type, String name, Integer pageNum, Integer pageSize);

    void upload(MultipartFile file,String info);

    byte[] download(Integer id) throws IOException;

    Courseware findById(Integer id);

    void incrementHeat(Integer id, int downloadHeat);

    void update(Courseware courseware);

    void delete(Integer id);
}
